package com.blue.rpc.core.message;

/**
 * RPC请求报文
 * 
 * @author zhengj
 * @since 1.0 2017年3月13日
 */
public class RpcRequest
{
	private byte majorVer = 1;
	private byte minorVer = 0;
	private String requestId; // 请求ID，不重复
	private byte type; // 消息类型：1握手，2心跳，3业务
	private String service;
	private String method;
	private Object[] params;

	public RpcRequest()
	{
	}

	public byte getMajorVer()
	{
		return majorVer;
	}

	public void setMajorVer(byte majorVer)
	{
		this.majorVer = majorVer;
	}

	public byte getMinorVer()
	{
		return minorVer;
	}

	public void setMinorVer(byte minorVer)
	{
		this.minorVer = minorVer;
	}

	public String getRequestId()
	{
		return requestId;
	}

	public void setRequestId(String requestId)
	{
		this.requestId = requestId;
	}

	public byte getType()
	{
		return type;
	}

	public void setType(byte type)
	{
		this.type = type;
	}

	public String getService()
	{
		return service;
	}

	public void setService(String service)
	{
		this.service = service;
	}

	public String getMethod()
	{
		return method;
	}

	public void setMethod(String method)
	{
		this.method = method;
	}

	public Object[] getParams()
	{
		return params;
	}

	public void setParams(Object[] params)
	{
		this.params = params;
	}

}
